home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / x2ftp / msdos / libs / svgapc23 / svgademo.h < prev    next >
C/C++ Source or Header  |  1995-04-30  |  8KB  |  175 lines

  1. /****************************************************************************
  2.      
  3.       'SVGACC' A Super Vga Graphics Library for use with Microsoft and
  4.       Borland C/C++
  5.       Copyright 1993-1995 by Stephen L. Balkum and Daniel A. Sill
  6.  
  7.     **************** UNREGISTERD SHAREWARE VERSION ***********************
  8.     * FOR EVUALATION ONLY. NOT FOR RESALE IN ANY FORM. SOFTWARE WRITTEN  *
  9.     * USING THIS UNREGISTERED SHAREWARE GRAPHICS LIBRARY MAY NOT BY SOLD *
  10.     * OR USED FOR ANY PURPOSE OTHER THAN THE EVUALTION OF THIS LIBRARY.  *
  11.     **********************************************************************
  12.  
  13.     **************** NO WARRANTIES AND NO LIABILITY **********************
  14.     * Stephen L. Balkum and Daniel A. Sill provide no warranties, either *
  15.     * expressed or implied, of merchantability, or fitness, for a        *
  16.     * particular use or purpose of this SOFTWARE and documentation.      *
  17.     * In no event shall Stephen L. Balkum or Daniel A. Sill be held      *
  18.     * liable for any damages resulting from the use or misuse of the     * 
  19.     * SOFTWARE and documentation.                                        *
  20.     **********************************************************************
  21.  
  22.     ************** U.S. GOVERNMENT RESTRICTED RIGHTS *********************
  23.     * Use, duplication, or disclosure of the SOFTWARE and documentation  *
  24.     * by the U.S. Government is subject to the restictions as set forth  *
  25.     * in subparagraph (c)(1)(ii) of the Rights in Technical Data and     *
  26.     * Computer Software cluse at DFARS 252.227-7013.                     *
  27.     * Contractor/manufacturer is Stephen L. Balkum and Daniel A. Sill,   *
  28.     * P.O. Box 7704, Austin, Texas 78713-7704                            *
  29.     **********************************************************************
  30.  
  31.     **********************************************************************
  32.     * By using this SOFTWARE or documentation, you agree to the above    *
  33.     * terms and conditions.                                              *
  34.     **********************************************************************
  35.  
  36.  ***************************************************************************/
  37.  
  38. #define TITLEN 85
  39.  
  40. #ifdef MODULE
  41.  
  42. extern endit;
  43. extern PaletteData orgpal, pal, pal2;
  44. extern MouseCursor magmousecursor;
  45. extern MouseCursor bigmousecursor;
  46. extern MouseCursor stwmousecursor;
  47. extern int gamma[];
  48. extern byte spritedata[];
  49. extern char demogetkey(void);
  50. extern void beep(void);
  51.  
  52. #else
  53.  
  54. int endit;
  55. PaletteData orgpal, pal, pal2;
  56.  
  57. char demogetkey(void);
  58. void doall(void);
  59. void screenclear(void);
  60. void screengoto(int x, int y);
  61. void beep(void);
  62. extern char doblock(void);
  63. extern char doclip(void);
  64. extern char dofill(void);
  65. extern char dopal(void);
  66. extern char doprims(void);
  67. extern char doprims(void);
  68. extern char doscroll(void);
  69. extern char dotext(void);
  70. extern char do2d(void);
  71. extern char do3d(void);
  72. extern char domouse(void);
  73. extern char dojoystick(void);
  74. extern char dopcx(void);
  75.  
  76.  
  77. /*MAGNIFIER MOUSE CURSOR DATA*/
  78. MouseCursor magmousecursor = {
  79.     {7},{6},
  80.     {255,255,255,255,255,7,7,7,7,255,255,255,255,255,255,255,
  81.     255,255,255,7,7,255,255,255,255,7,7,255,255,255,255,255,
  82.     255,255,7,255,255,255,255,255,255,255,255,7,255,255,255,255,
  83.     255,7,255,255,255,255,255,255,255,255,255,255,7,255,255,255,
  84.     255,7,255,255,255,255,255,255,255,255,255,255,7,255,255,255,
  85.     7,255,255,255,255,255,255,255,255,255,255,255,255,7,255,255,
  86.     7,255,255,255,255,255,255,255,255,255,255,255,255,7,255,255,
  87.     7,255,255,255,255,255,255,255,255,255,255,255,255,7,255,255,
  88.     7,255,255,255,255,255,255,255,255,255,255,255,255,7,255,255,
  89.     255,7,255,255,255,255,255,255,255,255,255,255,7,255,255,255,
  90.     255,7,255,255,255,255,255,255,255,255,255,255,7,255,255,255,
  91.     255,7,7,255,255,255,255,255,255,255,255,7,7,255,255,255,
  92.     255,255,7,7,7,255,255,255,255,7,7,7,255,255,255,255,
  93.     255,255,255,7,7,7,7,7,7,8,8,255,255,255,255,255,
  94.     255,255,255,255,255,7,7,7,7,7,8,8,255,255,255,255,
  95.     255,255,255,255,255,255,255,255,255,7,8,8,255,255,255,255,
  96.     255,255,255,255,255,255,255,255,255,255,7,8,8,255,255,255,
  97.     255,255,255,255,255,255,255,255,255,255,7,8,8,255,255,255,
  98.     255,255,255,255,255,255,255,255,255,255,255,7,8,8,255,255,
  99.     255,255,255,255,255,255,255,255,255,255,255,7,8,8,255,255,
  100.     255,255,255,255,255,255,255,255,255,255,255,255,7,8,8,255,
  101.     255,255,255,255,255,255,255,255,255,255,255,255,7,8,8,255,
  102.     255,255,255,255,255,255,255,255,255,255,255,255,255,7,8,8,
  103.     255,255,255,255,255,255,255,255,255,255,255,255,255,7,7,7}
  104. };
  105.  
  106.  
  107. /*BIG ARROW MOUSE CURSOR DATA*/
  108. MouseCursor bigmousecursor = {
  109.     {1},{1},
  110.     {0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,
  111.     0,15,15,0,0,255,255,255,255,255,255,255,255,255,255,255,
  112.     0,15,15,15,15,0,0,0,255,255,255,255,255,255,255,255,
  113.     0,15,15,15,15,15,15,15,0,0,255,255,255,255,255,255,
  114.     0,15,15,15,15,15,15,15,15,15,0,0,0,255,255,255,
  115.     0,15,15,15,15,15,15,15,15,15,15,15,15,0,0,255,
  116.     0,15,15,15,15,15,15,15,15,15,15,15,15,15,0,255,
  117.     0,15,15,15,15,15,15,15,15,15,15,15,0,0,255,255,
  118.     0,15,15,15,15,15,15,15,15,15,15,0,255,255,255,255,
  119.     0,15,15,15,15,15,15,15,15,0,0,255,255,255,255,255,
  120.     0,15,15,15,15,15,15,15,15,0,255,255,255,255,255,255,
  121.     0,15,15,15,15,15,0,15,15,15,0,255,255,255,255,255,
  122.     0,15,15,15,15,0,0,15,15,15,0,255,255,255,255,255,
  123.     0,15,15,0,0,255,255,0,15,15,15,0,255,255,255,255,
  124.     0,15,0,255,255,255,255,0,15,15,15,0,255,255,255,255,
  125.     0,0,255,255,255,255,255,255,0,15,15,15,0,255,255,255,
  126.     255,255,255,255,255,255,255,255,255,0,15,15,15,0,255,255,
  127.     255,255,255,255,255,255,255,255,255,0,15,15,15,0,255,255,
  128.     255,255,255,255,255,255,255,255,255,255,0,15,15,15,0,255,
  129.     255,255,255,255,255,255,255,255,255,255,255,0,15,15,15,0,
  130.     255,255,255,255,255,255,255,255,255,255,255,0,15,15,15,0,
  131.     255,255,255,255,255,255,255,255,255,255,255,255,0,15,15,0,
  132.     255,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,
  133.     255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255}
  134. };
  135.  
  136. /*STOP WATCH MOUSE CURSOR DATA*/
  137. MouseCursor stwmousecursor = {
  138.     {8},{11},
  139.     {255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
  140.     255,255,255,255,255,255,15,15,15,15,255,255,255,255,255,255,
  141.     255,255,255,255,255,255,15,15,15,15,255,255,255,255,255,255,
  142.     255,255,255,255,255,255,255,15,15,255,255,255,255,255,255,255,
  143.     255,255,255,255,255,255,15,15,15,15,255,255,255,255,255,255,
  144.     255,255,255,255,15,15,15,7,7,15,15,15,255,255,255,255,
  145.     255,255,255,15,15,7,7,7,7,7,7,15,15,255,255,255,
  146.     255,255,15,15,7,7,7,7,7,7,7,7,15,15,255,255,
  147.     255,15,15,7,0,7,7,7,7,7,7,7,7,15,15,255,
  148.     255,15,7,7,7,0,7,7,7,7,7,7,7,7,15,255,
  149.     15,15,7,7,7,7,0,7,7,7,0,0,7,7,15,15,
  150.     15,7,7,7,7,7,7,0,0,0,7,7,7,7,7,15,
  151.     15,7,7,7,7,7,7,0,0,7,7,7,7,7,7,15,
  152.     15,15,7,7,7,7,7,7,7,7,7,7,7,7,15,15,
  153.     255,15,7,7,7,7,7,7,7,7,7,7,7,7,15,255,
  154.     255,15,15,7,7,7,7,7,7,7,7,7,7,15,15,255,
  155.     255,255,15,15,7,7,7,7,7,7,7,7,15,15,255,255,
  156.     255,255,255,15,15,7,7,7,7,7,7,15,15,255,255,255,
  157.     255,255,255,255,15,15,15,7,7,15,15,15,255,255,255,255,
  158.     255,255,255,255,255,255,15,15,15,15,255,255,255,255,255,255,
  159.     255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
  160.     255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
  161.     255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
  162.     255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255}
  163. };
  164.  
  165. /*GAMMA CORRECTION TABLE FOR DRWALINE (ANTIALIASED LINES)*/
  166. int gamma[64] = {
  167.     63,63,62,62,61,61,60,60,59,59,58,58,57,57,56,56,
  168.     55,55,54,54,53,53,52,52,51,51,50,49,49,48,48,47,
  169.     46,46,45,44,44,43,42,41,41,40,39,38,37,37,36,35,
  170.     34,33,32,31,29,28,27,26,24,23,21,19,17,14,10,0
  171. };
  172.  
  173.  
  174. #endif
  175.